//
// GfxMode.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class GfxMode {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public GfxMode(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(GfxMode obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_GfxMode(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setOffScreen(boolean value) {
    nel3dJNI.GfxMode_OffScreen_set(swigCPtr, this, value);
  }

  public boolean getOffScreen() {
    return nel3dJNI.GfxMode_OffScreen_get(swigCPtr, this);
  }

  public void setWindowed(boolean value) {
    nel3dJNI.GfxMode_Windowed_set(swigCPtr, this, value);
  }

  public boolean getWindowed() {
    return nel3dJNI.GfxMode_Windowed_get(swigCPtr, this);
  }

  public void setWidth(long value) {
    nel3dJNI.GfxMode_Width_set(swigCPtr, this, value);
  }

  public long getWidth() {
    return nel3dJNI.GfxMode_Width_get(swigCPtr, this);
  }

  public void setHeight(long value) {
    nel3dJNI.GfxMode_Height_set(swigCPtr, this, value);
  }

  public long getHeight() {
    return nel3dJNI.GfxMode_Height_get(swigCPtr, this);
  }

  public void setDepth(short value) {
    nel3dJNI.GfxMode_Depth_set(swigCPtr, this, value);
  }

  public short getDepth() {
    return nel3dJNI.GfxMode_Depth_get(swigCPtr, this);
  }

  public void setFrequency(long value) {
    nel3dJNI.GfxMode_Frequency_set(swigCPtr, this, value);
  }

  public long getFrequency() {
    return nel3dJNI.GfxMode_Frequency_get(swigCPtr, this);
  }

  public void setAntiAlias(char value) {
    nel3dJNI.GfxMode_AntiAlias_set(swigCPtr, this, value);
  }

  public char getAntiAlias() {
    return nel3dJNI.GfxMode_AntiAlias_get(swigCPtr, this);
  }

  public GfxMode() {
    this(nel3dJNI.new_GfxMode__SWIG_0(), true);
  }

  public GfxMode(long w, long h, short d, boolean windowed, boolean offscreen, long frequency, char aa) {
    this(nel3dJNI.new_GfxMode__SWIG_1(w, h, d, windowed, offscreen, frequency, aa), true);
  }

  public GfxMode(long w, long h, short d, boolean windowed, boolean offscreen, long frequency) {
    this(nel3dJNI.new_GfxMode__SWIG_2(w, h, d, windowed, offscreen, frequency), true);
  }

  public GfxMode(long w, long h, short d, boolean windowed, boolean offscreen) {
    this(nel3dJNI.new_GfxMode__SWIG_3(w, h, d, windowed, offscreen), true);
  }

  public GfxMode(long w, long h, short d, boolean windowed) {
    this(nel3dJNI.new_GfxMode__SWIG_4(w, h, d, windowed), true);
  }

  public GfxMode(long w, long h, short d) {
    this(nel3dJNI.new_GfxMode__SWIG_5(w, h, d), true);
  }

}
